import request from '@/utils/request'

// 查询出库商品列表
export function listOutGoods(query) {
  return request({
    url: '/crm/outGoods/list',
    method: 'get',
    params: query
  })
}

// 查询出库商品详细
export function getOutGoods(id) {
  return request({
    url: '/crm/outGoods/' + id,
    method: 'get'
  })
}

export function listComparison(storeId) {
  return request({
    url: '/crm/outGoods/listComparison?storeId=' + storeId,
    method: 'get'
  })
}


// 新增出库商品
export function addOutGoods(data) {
  return request({
    url: '/crm/outGoods',
    method: 'post',
    data: data
  })
}

// 修改出库商品
export function updateOutGoods(data) {
  return request({
    url: '/crm/outGoods',
    method: 'put',
    data: data
  })
}

// 删除出库商品
export function delOutGoods(id) {
  return request({
    url: '/crm/outGoods/' + id,
    method: 'delete'
  })
}
